package com.deparse.dpframe.ui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by MartinDKent on 2016/1/16.
 */
public class DPFullDrawListView extends ListView {
    public DPFullDrawListView(Context context) {
        super(context);
    }

    public DPFullDrawListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public DPFullDrawListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int h = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, h);
    }
}
